import 'package:flutter/material.dart';

class NotFoundPage extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    // name在routeTable中没定义，这里从settings参数中取出显示
    final name = ModalRoute.of(context).settings.name;
    return Scaffold(
      appBar:AppBar(
        title: Text("未知路由"),
      ) ,
      body: Center(
        child: Text("使用了路由表中未定义的key：$name"),
      ),
    );
  }
}